using Crawler.DataServices.Persistence.nHibernate;
using Crawler.DataServices.Persistence.UnitOfWork;
using Crawler.DataServices.Repositories;
using Crawler.DomainServices.DataServices;
using StructureMap.Configuration.DSL;

namespace Crawler.DataServices
{
	public class DataServicesRegistry : Registry
	{
		public DataServicesRegistry()
		{
			For<IMoviesRepository>().Use<MoviesRepository>();
			For<ISourceContentRepository>().Use<SourceContentRepository>();
			For<ICrawlingSessionRepository>().Use<CrawlingSessionsRepository>();
			For<ISessionFactoryProvider>().Singleton().Use<SqliteSessionFactoryProvider>();
			For<IUnitOfWork>().Use<UnitOfWork>();
		}
	}
}